package com.ktjy.ktmall.entity;

/**
 * 轮播图实体类
 * @version v1.0
 * @Author 郴州科泰
 * @Create 2024-07-17 - 15:10
 */
public class BannerItem {
    private int id;
    private String imgUrl; // 轮播图url
    private String hrefUrl; //跳转链接
    private int type;  // 跳转类型，1为首页、2为分类商品页
    private int enabled; // 删除标识字段(0-未删除 1-已删除)
    private String createTime;  // 创建时间
    private String updateTime;

    public BannerItem() {
    }
    public BannerItem(int id, String imgUrl, String hrefUrl, int type, int enabled, String createTime, String updateTime) {
        this.id = id;
        this.imgUrl = imgUrl;
        this.hrefUrl = hrefUrl;
        this.type = type;
        this.enabled = enabled;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
    public BannerItem(String imgUrl, String hrefUrl, int type, int enabled, String createTime, String updateTime) {
        this.imgUrl = imgUrl;
        this.hrefUrl = hrefUrl;
        this.type = type;
        this.enabled = enabled;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getHrefUrl() {
        return hrefUrl;
    }

    public void setHrefUrl(String hrefUrl) {
        this.hrefUrl = hrefUrl;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getEnabled() {
        return enabled;
    }

    public void setEnabled(int enabled) {
        this.enabled = enabled;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
}
